package baseClasses;

import util.Sprite;

public class Clipart extends Sprite {
	public final static int NOT_FINDED = 0;
	public final static int FINDED = 1;
	
	public Clipart(int x, int y) {
		super(2, x, y);
		cena = NOT_FINDED;
	}
	
	public boolean containsMouse(int mouseX, int mouseY){
		boolean result = false;
		
		if(((mouseX >= this.getX() && (this.getWidth() + this.getX()) >= mouseX))
				&&
			(mouseY >= this.getY() && (this.getHeigth() + this.getY()) >= mouseY)){

			result = true;
		}
		
		return result;
	}
	
	public void changeToFindedSprite(){
		cena = FINDED;
	}
}
